<?php
class Ci_sessions extends MY_Model {
	var $table_name = 'ci_sessions';
	var $primary_key = 'session_id';
	function check_exist($id)
    {
        $this->db->where($this->primary_key,$id);
		$query = $this->db->get($this->table_name);
        if ($query->num_rows() > 0)
		{
		   return true;
		} 
		else return false;
    }
}